package com.leadbank.baselbf.base;

import com.leadbank.baselbf.log.LogBus;
import com.leadbank.baselbf.outils.ACache;

/**
 * @ClassName: BaseLBFApplication
 * @Description:
 * @Author: zhouzhiguo
 * @Date: 2022/3/9 15:16
 * @Version: 4.8.7
 * 上海利得金融科技集团版权所有.
 */

public class BaseLBFApplication extends BaseApplication {

    private static ACache aCache = null;
    public static BaseLBFApplication baseInstance;
    //浏览器模式
    public static boolean browserModel=true;
    @Override
    public void onCreate() {
        super.onCreate();
        baseInstance = this;
//        ViseLog.e(TAG, "======= $TAG =======")
//        //必须在init之前
//        ARouter.openLog()//打印日志
//        ARouter.openDebug()//线上版本需要关闭
//
//        //官方推荐在Application中初始化
//        ARouter.init(baseInstance)

        LogBus.setDebug(true);
    }

    /**
     * 获取cache
     *
     * @return
     */
    public static ACache getaCache() {
        if (aCache == null) {
            aCache = ACache.get(BaseApplication.getBaseApplication());
        }
        return aCache;
    }
}
